class CreateAnswerContents < ActiveRecord::Migration
  def self.up
    create_table :answer_contents do |t|
      t.references :content, :null => false
      t.references :answer, :null => false


      t.timestamps
    end
    add_index(:answer_contents,[:content_id,:answer_id], :unique => true, :name => "uk_answer_content")
  end

  def self.down
    drop_table :answer_contents
  end
end
